<template>
  <i class="iconfont icon-container" :class="type" ></i>
</template>

<script>
// const classMap = {
//   dianhua: "icon-dianhua",
//   duanxin: "icon-duanxin",
//   yanzhengma: "icon-yanzhengma",
//   account: "icon-zhanghu",
//   pwd1: "icon-mima",
//   pwd2: "icon-mima1",
// };
// export const types = Object.keys(classMap);
export default {
  name:'IconComponent',
  props: {
    type: {
      type: String,
      required: true,
    },
    // Styles: {
    //   type: String,
    //   default: "font-size:14px",
    // },
  },
  // computed: {
  //   // 图标类样式
  //   fontClass() {
  //     return classMap[this.type];
  //   },
  // },
};
</script>
                    
<style scoped>
@import "http://at.alicdn.com/t/c/font_4280689_8yjuwes2s4d.css";
.iconfont {
  color: inherit;
  font-size: 24px;
}
</style>
